import request from '@/utils/request'

// 查询代履职综合列表
export function listRepresentativePerformance(query) {
  return request({
    url: '/RepresentativePerformance/RepresentativePerformance/list',
    method: 'get',
    params: query
  })
}

// 查询代履职综合详细
export function getRepresentativePerformance(id) {
  return request({
    url: '/RepresentativePerformance/RepresentativePerformance/' + id,
    method: 'get'
  })
}

// 新增代履职综合
export function addRepresentativePerformance(data) {
  return request({
    url: '/RepresentativePerformance/RepresentativePerformance',
    method: 'post',
    data: data
  })
}

// 修改代履职综合
export function updateRepresentativePerformance(data) {
  return request({
    url: '/RepresentativePerformance/RepresentativePerformance',
    method: 'put',
    data: data
  })
}

// 删除代履职综合
export function delRepresentativePerformance(id) {
  return request({
    url: '/RepresentativePerformance/RepresentativePerformance/' + id,
    method: 'delete'
  })
}
